/**
 * merge level=28
 */
Ext.define('Jfok.module.chart.LineChart', {

			extend : 'Ext.chart.Chart',
			alias : 'widget.linechart',
			border : 1,
			shadow : true,
			initComponent : function() {
				var me = this;
				this.axes = [{
							type : 'Numeric',
							position : 'left',
							fields : this.numericField,
							title : this.numericTitle,
							minimum : 0,
							label : {
								renderer : Ext.util.Format.numberRenderer('0,0')
							},
							minorTickSteps : 4,
							grid : this.grid
						}, {
							type : 'Category',
							position : 'bottom',
							fields : this.categoryField,
							title : this.categoryTitle
						}];

				if (Ext.isArray(this.numericTitle)) {
					this.series = [];
					for (var i = 0; i < this.numericTitle.length; i++) {
						this.series.push({
									type : 'line',
									axis : 'left',
									highlight : true,
									xField : this.categoryField,
									yField : this.numericField[i],
									title : this.numericTitle[i]
									
								})
					}
					this.legend = {
						position : 'right'
					};
				} else {
					this.series = [{
								type : 'line',
								axis : 'left',
								highlight : true,
								xField : this.categoryField,
								yField : this.numericField,
								title : this.numericTitle
							}]

				}
				if (!this.showDetailNumber)
					delete this.series[0].label;
				if (!this.showTips)
					delete this.series[0].tips;

				this.callParent(arguments);
			}

		})